#include <stdio.h>

int main(int argc,char**argv){
    char cmdopt[1024]="gdb --args SipTestTool ";
    int i=0;
    for (i=1;i<argc;i++){
	strcat(cmdopt," ");
	strcat(cmdopt,argv[i]);
    }	
    strcat(cmdopt," <cmds 1>>std.log 2>>err.log");
    system(cmdopt);
}
